package com.palmwindActivity.app.main;


import android.app.Activity;

import com.palmwindActivity.R;
import com.palmwindActivity.app.AbstractJob;
import com.palmwindActivity.app.IJobNotifier;


public class SplashScreenJob extends AbstractJob {
	public static final String SPLASH_JOB = "splash_job";
	public static final int SPLASH_JOB_ID = 0x01;
	protected Activity uiScreen;
	
	public SplashScreenJob(int id, String tag, IJobNotifier listener, Activity uiShowScreen ) {
		super(id, tag, listener);
		
		this.uiScreen = uiShowScreen;
	}

    public void executeJob()
    {
        uiScreen.runOnUiThread(new Runnable()
        {
            
            public void run()
            {
                uiScreen.setContentView(R.layout.splash);
                
            }
        });
        try
        {
            Thread.sleep(3000);
        }
        catch (InterruptedException e)
        {
            e.printStackTrace();
        }
    }

}
